using SmartLink.EnumLibrary;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SmartLink.DTOS.Permission
{
    /// <summary>
    /// 添加单个数据权限模型
    /// </summary>
    public class AddSingleDataAuthorizationDTO
    {
        /// <summary>
        /// 模块编码
        /// </summary>
        public string ModuleCode { get; set; }

        /// <summary>
        /// 授权范围类型
        /// </summary>
        public AuthorizationScopeEnum AuthorizationScope { get; set; }

        /// <summary>
        /// 所有者ID
        /// </summary>
        public int OwnerID { get; set; }

        /// <summary>
        /// 自定义资源
        /// </summary>
        public IList<OrgDeptMixDTO> CustomResource { get; set; }
    }

    /// <summary>
    /// 机构部门混合模型
    /// </summary>
    public class OrgDeptMixDTO
    {
        /// <summary>
        /// ID
        /// </summary>
        public int ID { get; set; }
        /// <summary>
        /// 机构、部门区分标识
        /// </summary>
        public bool IsDept { get; set; }
    }
}
